package com.bwie.Listener;
import com.bwie.config.DirectConfig;
import com.rabbitmq.client.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

import org.springframework.stereotype.Component;




@Component
@Slf4j
public class DirectListener {

    @RabbitListener(queues = DirectConfig.DIRECT_QUEUE_ONE)
    public void accept(String map, Message message, Channel channel){
        log.info("接收消息："+map);

    }
}
